import request from '@/utils/request'

// 查询人员授权设备记录列表
export function listDevicepersonauthorizedrecord(query) {
  return request({
    url: '/lgdz/devicepersonauthorizedrecord/list',
    method: 'get',
    params: query
  })
}

// 查询人员授权设备记录详细
export function getDevicepersonauthorizedrecord(id) {
  return request({
    url: '/lgdz/devicepersonauthorizedrecord/' + id,
    method: 'get'
  })
}

// 新增人员授权设备记录
export function addDevicepersonauthorizedrecord(data) {
  return request({
    url: '/lgdz/devicepersonauthorizedrecord',
    method: 'post',
    data: data
  })
}

// 修改人员授权设备记录
export function updateDevicepersonauthorizedrecord(data) {
  return request({
    url: '/lgdz/devicepersonauthorizedrecord',
    method: 'put',
    data: data
  })
}

// 删除人员授权设备记录
export function delDevicepersonauthorizedrecord(id) {
  return request({
    url: '/lgdz/devicepersonauthorizedrecord/' + id,
    method: 'delete'
  })
}

// 导出人员授权设备记录
export function exportDevicepersonauthorizedrecord(query) {
  return request({
    url: '/lgdz/devicepersonauthorizedrecord/export',
    method: 'get',
    params: query
  })
}